﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TRPOP.CMS.Message.model
{
    /// <summary>
    /// 留言（或咨询）信息模型
    /// </summary>
    public class MessageInfo
    {
        #region Private Instances
        private int m_intiMessageID;
        private int m_intiMessageStatusID;
        private int m_intiMessageTypeID;
        private string m_strnvcMessageTitle;
        private string m_strntMessageContent;
        private DateTime m_datdtCreationTime;
        private int m_intiMessageSend;
        private string m_strnvcMessageSend;
        private string m_strnvcContactName;
        private int m_intiContactGender;
        private string m_strnvcContactPhone;
        private string m_strnvcContactMobile;
        private string m_strnvcContactAddress;
        private string m_strnvcContactEmail;
        private string m_strnvcContactPostCode;
        private bool m_blnbIsDelete = false;
        private string m_strntExtendProperty;
        #endregion

        #region Public Properities

        /// <summary>
        /// The iMessageID
        /// </summary>
        public int iMessageID
        {
            get
            {
                return m_intiMessageID;
            }
            set
            {
                m_intiMessageID = value;
            }
        }

        /// <summary>
        ///  留言状态，对应 MessageStatus 的 The iMessageStatusID,非空
        /// </summary>
        public int iMessageStatusID
        {
            get
            {
                return m_intiMessageStatusID;
            }
            set
            {
                m_intiMessageStatusID = value;
            }
        }

        /// <summary>
        /// 留言类型，对应 MessageType 的  iMessageTypeID，非空
        /// </summary>
        public int iMessageTypeID
        {
            get
            {
                return m_intiMessageTypeID;
            }
            set
            {
                m_intiMessageTypeID = value;
            }
        }

        /// <summary>
        /// 留言标题，NOT NULL
        /// </summary>
        public string nvcMessageTitle
        {
            get
            {
                return m_strnvcMessageTitle;
            }
            set
            {
                m_strnvcMessageTitle = value;
            }
        }

        /// <summary>
        /// 留言内容
        /// </summary>
        public string ntMessageContent
        {
            get
            {
                return m_strntMessageContent;
            }
            set
            {
                m_strntMessageContent = value;
            }
        }

        /// <summary>
        /// The dtCreationTime
        /// </summary>
        public DateTime dtCreationTime
        {
            get
            {
                return m_datdtCreationTime;
            }
            set
            {
                m_datdtCreationTime = value;
            }
        }

        /// <summary>
        /// 留言对象(例如留言给某个产品、某个用户)，整形
        /// </summary>
        public int iMessageSend
        {
            get
            {
                return m_intiMessageSend;
            }
            set
            {
                m_intiMessageSend = value;
            }
        }

        /// <summary>
        /// 留言对象(例如留言给某个产品、某个用户)，字符型
        /// </summary>
        public string nvcMessageSend
        {
            get
            {
                return m_strnvcMessageSend;
            }
            set
            {
                m_strnvcMessageSend = value;
            }
        }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string nvcContactName
        {
            get
            {
                return m_strnvcContactName;
            }
            set
            {
                m_strnvcContactName = value;
            }
        }

        /// <summary>
        /// 联系人性别
        /// </summary>
        public int iContactGender
        {
            get
            {
                return m_intiContactGender;
            }
            set
            {
                m_intiContactGender = value;
            }
        }

        /// <summary>
        /// 联系人电话
        /// </summary>
        public string nvcContactPhone
        {
            get
            {
                return m_strnvcContactPhone;
            }
            set
            {
                m_strnvcContactPhone = value;
            }
        }

        /// <summary>
        /// 联系人手机
        /// </summary>
        public string nvcContactMobile
        {
            get
            {
                return m_strnvcContactMobile;
            }
            set
            {
                m_strnvcContactMobile = value;
            }
        }

        /// <summary>
        /// 联系人地址
        /// </summary>
        public string nvcContactAddress
        {
            get
            {
                return m_strnvcContactAddress;
            }
            set
            {
                m_strnvcContactAddress = value;
            }
        }

        /// <summary>
        /// 联系人Email
        /// </summary>
        public string nvcContactEmail
        {
            get
            {
                return m_strnvcContactEmail;
            }
            set
            {
                m_strnvcContactEmail = value;
            }
        }

        /// <summary>
        /// 联系人邮编
        /// </summary>
        public string nvcContactPostCode
        {
            get
            {
                return m_strnvcContactPostCode;
            }
            set
            {
                m_strnvcContactPostCode = value;
            }
        }

        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool bIsDelete
        {
            get
            {
                return m_blnbIsDelete;
            }
            set
            {
                m_blnbIsDelete = value;
            }
        }

        /// <summary>
        /// The ntExtendProperty
        /// </summary>
        public string ntExtendProperty
        {
            get
            {
                return m_strntExtendProperty;
            }
            set
            {
                m_strntExtendProperty = value;
            }
        }

        #endregion
    }

    /// <summary>
    /// 留言（或咨询） 信息+回复
    /// </summary>
    public class Message_MessageReplyInfo : MessageInfo
    {
        #region Private Instances
        private int m_intiMessageReplyID;
        private string m_strntMessageReplyContent;
        private DateTime m_datdtMessageReplyTime;
        private string m_strnvcMessageReplyUserName;
        private string m_strnvcMessageReplyTitle;
        #endregion

        #region Public Properities

        /// <summary>
        /// The iMessageReplyID
        /// </summary>
        public int iMessageReplyID
        {
            get
            {
                return m_intiMessageReplyID;
            }
            set
            {
                m_intiMessageReplyID = value;
            }
        }

        /// <summary>
        /// 回复内容 NOT NULL
        /// </summary>
        public string ntMessageReplyContent
        {
            get
            {
                return m_strntMessageReplyContent;
            }
            set
            {
                m_strntMessageReplyContent = value;
            }
        }

        /// <summary>
        /// The dtMessageReplyTime
        /// </summary>
        public DateTime dtMessageReplyTime
        {
            get
            {
                return m_datdtMessageReplyTime;
            }
            set
            {
                m_datdtMessageReplyTime = value;
            }
        }

        /// <summary>
        /// 回复人姓名
        /// </summary>
        public string nvcMessageReplyUserName
        {
            get
            {
                return m_strnvcMessageReplyUserName;
            }
            set
            {
                m_strnvcMessageReplyUserName = value;
            }
        }

        /// <summary>
        /// 回复标题
        /// </summary>
        public string nvcMessageReplyTitle
        {
            get
            {
                return m_strnvcMessageReplyTitle;
            }
            set
            {
                m_strnvcMessageReplyTitle = value;
            }
        }

        #endregion
    }

}
